package com.lkx.service.impl;

import java.util.List;
import java.util.Map;
import com.lkx.entity.User;
import com.lkx.dao.UserMapper;
import com.lkx.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName: UserServiceImpl
 * @Function:  TODO
 * @Date:      2018-12-17 12:39:55
 * @Author     黄曦
 * @Version    V1.0
 */
@Service
public class UserServiceImpl implements UserService{

	@Autowired
	private UserMapper userMapper;

	@Override
	public User selectByPrimaryKey(Long id){
		return userMapper.selectByPrimaryKey(id);
	}

	@Override
	public List<User> list(Map<String, Object> map){
		return userMapper.list(map);
	}

	@Override
    public int count(Map<String, Object> map){
		return userMapper.count(map);
	}

	@Override
    public int insert(User record){
		return userMapper.insert(record);
	}


	@Override
    public int updateByPrimaryKey(User record){
		return userMapper.updateByPrimaryKey(record);
	}


	@Override
    public int deleteByPrimaryKey(Long id){
		return userMapper.deleteByPrimaryKey(id);
	}

	@Override
    public int batchRemove(Long[] ids){
		return userMapper.batchRemove(ids);
	}

}

